<?php
use yii\helpers\Url;
use common\models\Article;
?>
<script type="text/javascript" src="js/jquery.flexslider-min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('.flexslider').flexslider({
            directionNav: true,
            pauseOnAction: false
        });
    });
</script>
<?= \Yii::$app->view->renderFile('@app/views/layouts/header.php'); ?>

<div class="clear"></div>

<div class="sy_main">
  <div class="wrapin">
    <div class="page">

    <!--page 开始-->
      <div class="page_left">
        <div class="page_left_title"><span>单位概况</span></div>
        <?php $list = Article::getArticles(7); ?>
        <div class="page_left_main">
          <?php 
          foreach ($list as $v) {
          ?>
            <li><a href="<?= Url::to(['/site/show', 'id' => $v->id])?>"><span><?= $v->title?></span></a></li>
          <?php } ?>
        </div>
      </div>

      <!--page_left 结束-->
      <div class="page_right">
        <div class="page_right_main">
          <div class="page_right_title">领导信息</div>
          <div class="page_right_content">
            <div class="about">

              <div class="panel panel-default">
                <div class="panel-heading" style="font-size:16px;">
                    丽水市本级行政人员信息
                </div>
                <div class="panel-body">
                    <div class="row">
                        <?php $list = Article::getArticles(11); ?>
                        <?php foreach($list as $v) { ?>
                        <div class="col-md-3">
                            <div class="thumbnail">
                                <img src="<?= $v->thumb?>" style="height:180px;" alt="..."/>
                                <div class="caption">
                                    <h4 style="font-size:14px;"><?= $v->title?></h4>
                                </div>
                            </div>
                        </div>
                        <?php }?>
                    </div>
                </div>
              </div>

              <div class="panel panel-default">
                <div class="panel-heading" style="font-size:16px;">
                    松阳行政人员信息
                </div>
                <div class="panel-body">
                    <div class="row">
                        <?php $list = Article::getArticles(12); ?>
                        <?php foreach($list as $v) { ?>
                        <div class="col-md-3">
                            <div class="thumbnail">
                                <img src="<?= $v->thumb?>" style="height:180px;" alt="..."/>
                                <div class="caption">
                                    <h4 style="font-size:14px;"><?= $v->title?></h4>
                                </div>
                            </div>
                        </div>
                        <?php }?>
                    </div>
                </div>
              </div>

              <div class="panel panel-default">
                <div class="panel-heading" style="font-size:16px;">
                    龙泉行政人员信息
                </div>
                <div class="panel-body">
                    <div class="row">
                        <?php $list = Article::getArticles(13); ?>
                        <?php foreach($list as $v) { ?>
                        <div class="col-md-3">
                            <div class="thumbnail">
                                <img src="<?= $v->thumb?>" style="height:180px;" alt="..."/>
                                <div class="caption">
                                    <h4 style="font-size:14px;"><?= $v->title?></h4>
                                </div>
                            </div>
                        </div>
                        <?php }?>
                    </div>
                </div>
              </div>

            </div>
          </div>
        </div>
      </div>
      <!--page_right 结束-->

    <!--page 结束-->
    </div>
  </div>
</div>

<?= \Yii::$app->view->renderFile('@app/views/layouts/footer.php'); ?>
